import type { RouteRecordRaw } from 'vue-router'

// 预加载公共视图组件
import Login from '@/views/commonViews/login/index.vue'
import Register from '@/views/commonViews/register/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/login',
    name: 'Login',
    component: Login,
    meta: { requiresAuth: false }
  },
  {
    path: '/register',
    name: 'Register',
    component: Register,
    meta: { requiresAuth: false }
  }
]

export default routes
